<?php

namespace App\Kuafu\CouponExt\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class CouponExtCodeEnum extends BaseCodeEnum
{
    public const ERR_DB_ADD                 = 515000;
    public const ERR_MEITUAN_CONFIG_EMPTY   = 515001;
    public const ERR_MEITUAN_CONFIG_ERR     = 515002;
    public const ERR_MEITUAN_COUPON_PREPARE = 515003;
    public const ERR_MEITUAN_COUPON_CONSUME = 515004;
    public const ERR_MEITUAN_COUPON_NUM     = 515005;
    public const ERR_MEITUAN_COUPON_MIN_NUM = 515006;
    public const ERR_MEITUAN_COUPON_CANCEL  = 515007;

    public const ERR_COUPON_NOT_FOUND = 515008;

    public const ERR_COUPON_PLATFORM_NOT_FOUND = 515009;
    public const ERR_COUPON_PLATFORM_NOT_SUIT  = 515010;

    public const ERR_COUPON_PRODUCT_NOT_EXIST = 515019;

    public const ERR_DOUYIN_COUPON_NUM     = 515020;
    public const ERR_DOUYIN_COUPON_CONSUME = 515021;
    public const ERR_DOUYIN_CONFIG_ERROR   = 515022;
    public const ERR_DOUYIN_CONFIG_EMPTY   = 515023;

    //小红书错误码配置
    public const ERR_XHS_COUPON_PREPARE = 515030;
    public const ERR_XHS_COUPON_CONSUME = 515031;
    public const ERR_XHS_COUPON_CANCEL  = 515032;

    public const CODE_TEXT = [
        self::ERR_COUPON_PRODUCT_NOT_EXIST => '关联商品不存在',

        self::ERR_DB_ADD                 => '券码核销入库失败',
        self::ERR_MEITUAN_CONFIG_EMPTY   => '美团点评店铺未建店，请联系督导核实',
        self::ERR_MEITUAN_CONFIG_ERR     => '美团店铺配置错误',
        self::ERR_MEITUAN_COUPON_PREPARE => '美团检查券失败',
        self::ERR_MEITUAN_COUPON_CONSUME => '美团优惠券核销失败',
        self::ERR_MEITUAN_COUPON_NUM     => '美团优惠券可核销数量不足',
        self::ERR_MEITUAN_COUPON_MIN_NUM => '美团优惠券未达到最低核销数量',
        self::ERR_MEITUAN_COUPON_CANCEL  => '美团优惠券撤销券失败',

        self::ERR_COUPON_NOT_FOUND          => '券码不存在',
        self::ERR_COUPON_PLATFORM_NOT_FOUND => '平台未绑定',
        self::ERR_COUPON_PLATFORM_NOT_SUIT  => '门店不适用',

        self::ERR_DOUYIN_COUPON_NUM     => '抖音优惠券可核销数量不足',
        self::ERR_DOUYIN_COUPON_CONSUME => '抖音优惠券可核销失败',
        self::ERR_DOUYIN_CONFIG_ERROR   => '抖音店铺配置错误',
        self::ERR_DOUYIN_CONFIG_EMPTY   => '抖音店铺未建店，请联系督导核实',

        //小红书错误码 - 信息 配置
        self::ERR_XHS_COUPON_PREPARE    => "小红书查询券码详情失败",
        self::ERR_XHS_COUPON_CONSUME    => "小红书核销优惠券失败",
        self::ERR_XHS_COUPON_CANCEL     => "小红书撤销优惠券失败"


    ];
}
